package com.pipayshop.service;


import com.pipayshop.domain.StoreCommodityHistory;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 实体店用户商品历史记录表 服务类
 * </p>
 *
 * @author zxb
 * @since 2023-07-29
 */
public interface PhysicalStoreCommodityHistoryService extends IService<StoreCommodityHistory> {

    /**
     * 删除用户浏览商品的历史记录
     * @param userId
     * @param commodityId
     * @return
     */
    boolean deleteHistory(String userId, String commodityId);

    /**
     * 添加用户浏览商品的历史记录
     * @param shopCommodityHistory
     * @return
     */
    boolean addHistory(StoreCommodityHistory shopCommodityHistory);
}
